package com.lcx.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

/** 
 * @Description  
 * @version 1.0 
 * @author lcx
 * @date 2025/2/9 11:25
 */
@TableName(value = "`user`")
@Component
@Data
public class User {

    /**
     * 会员编号
     */
    @TableId(value = "user_id", type = IdType.INPUT)
    private Long userId;

    @TableField(value = "user_status")
    private int userStatus;
    /**
     * 会员账号
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 会员密码
     */
    @TableField(value = "user_pwd")
    private String userPwd;

    /**
     * 会员邮箱
     */
    @TableField(value = "user_email")
    private String userEmail;

    /**
     * 会员权限（默认为0）
0：普通会员 1：管理员
     */
    @TableField(value = "user_role")
    private Integer userRole;

    /**
     * 会员头像
     */
    @TableField(value = "user_headImg")
    private String userHeadimg;

}